package com.buobao.springmvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class TestController {

    @GetMapping("/t")
    @ResponseBody  //直接向响应输出数据，不进行页面跳转
    public String test() {
        return "success hello 11111";
    }
}
